import request from '@/utils/request'

// 查询肉鸡列表
export function listChickens(query) {
  return request({
    url: '/btlfbreed/chickens/list',
    method: 'get',
    params: query
  })
}

// 查询肉鸡详细
export function getChickens(chickenId) {
  return request({
    url: '/btlfbreed/chickens/' + chickenId,
    method: 'get'
  })
}

// 新增肉鸡
export function addChickens(data) {
  return request({
    url: '/btlfbreed/chickens',
    method: 'post',
    data: data
  })
}

// 修改肉鸡
export function updateChickens(data) {
  return request({
    url: '/btlfbreed/chickens',
    method: 'put',
    data: data
  })
}

// 删除肉鸡
export function delChickens(chickenId) {
  return request({
    url: '/btlfbreed/chickens/' + chickenId,
    method: 'delete'
  })
}
// 初始化下拉框
export function getOptionselect() {
  return request({
    url: '/api/optionSelect',
    method: 'get'
  })
}